package Private.Text_;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class File_ {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        Class file_02Class=Class.forName("java.io.File");
        Constructor[] declaredConstructors = file_02Class.getDeclaredConstructors();
        for (Constructor declaredConstructor : declaredConstructors) {
            System.out.println(declaredConstructor);

            Constructor<?> constructor=file_02Class.getDeclaredConstructor(String.class);
            String pathname="d:\\www.txt";
            Object o=constructor.newInstance(pathname);
            Method createNewFile = file_02Class.getMethod("createNewFile");
            createNewFile.invoke(o);
            System.out.println(o.getClass());
        }


    }
}
